from rongcloud.rongcloud import RongCloud

rc = RongCloud('lmxuhwagl591d', 'Sq7aT43V3T')

def getUserInfo():
    user_ids = ['5']
    rep = rc.get_user().get_tag().get(user_ids)
    print(rep)

# user_ids = 'user_1'
# group_id = 'group_test'
# group_name = 'TestGroup'
# rep = rc.get_group().create(user_ids, group_id, group_name)
# self.assertEqual(rep['code'], 200, rep)
def createGroup():
    user_ids = ['5','51352', '51353']
    group_id = '5-51352-51353'
    group_name = 'TestGroup'
    rep = rc.get_group().create(user_ids, group_id, group_name)
    print(rep)
    
def test_query():
    group_id = '5-51352-51353'
    rep = rc.get_group().query(group_id)
    print(rep)
    
def test_dismiss():
    user_id = '5'
    group_id = '5-51352-51353'
    rep = rc.get_group().dismiss(user_id, group_id)
    print(rep)
if __name__ == "__main__":    
    test_query()
    
    
    